/**
 * 
 */
window.onload=function(){
	/*btn2버튼이 클릭되면*/
	var b2 = document.getElementById('btn2');
	b2.onclick=function(){
		var rBar=document.getElementById('ran');
		alert(rBar.value);
	}
	
	
	var b = document.getElementById("btn");
	b.onclick=function(){
		var s1 = document.getElementById("su1");
		var s2 = document.getElementById("su2");
		
		var r = Number(s1.value) + Number(s2.value);
		alert("r=" + r);
	}
}